package com.gitee.ccr.face.biz;

import com.gitee.ccr.face.UserBiz;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstractUserBiz implements UserBiz {

    @Override
    public void register() {
        // do something before
        // ...
        registerUser();
        // do something after
        // ...
    }

    @Override
    public void update() {

    }

    protected void registerUser() {
        // do nothing
        // do something defined in sub-class
    }

}
